package com.zhang.cn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhang.cn.service.userService;
@EnableAutoConfiguration
@RestController
public class usercontroller {
	@Autowired
	private userService userService;

	@RequestMapping("/createuser")
	public String createuser(Integer id,String name, Integer pwd) {
		userService.createuser(id,name, pwd);
		return "success";
	}
}
